using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace Easy.Geo.Kml
{
    public class BalloonStyle : Object
    {
        private string _bgColor;
        [XmlElement(ElementName = "bgColor")]
        public string BgColor
        {
            get { return _bgColor; }
            set { _bgColor = value; }
        }
        private String _textColor;
        [XmlElement(ElementName = "textColor")]
        public String TextColor
        {
            get { return _textColor; }
            set { _textColor = value; }
        }
        private string _text;
        [XmlIgnore]
        public string Text
        {
            get { return _text; }
            set { _text = value; }
        }
        [XmlElement(ElementName="text")]
        public System.Xml.XmlCDataSection XmlText
        {
            get
            {
                System.Xml.XmlDataDocument doc = new System.Xml.XmlDataDocument();
                System.Xml.XmlCDataSection cd = doc.CreateCDataSection(this._text);
                return cd;
            }
            set
            {
                this._text = value.Value;
            }
        }
        private DisplayMode _displayMode;
        [XmlElement(ElementName = "displayMode")]
        public DisplayMode DisplayMode
        {
            get { return _displayMode; }
            set { _displayMode = value; }
        }
    }
}
